1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
4 <title>Samples Index
</title>
5 <link rel=
"stylesheet" type=
"text/css" href=
"../docs/rotor.css">
12 <p>The following samples provide examples of managed applications and tools that illustrate
13 functionality in the Shared Source CLI (SSCLI).
</p>
15 <p>You can build all the samples at once by switching to the sscli20\samples
16 directory and running build.
</p>
18 <p>You can build each individual sample by switching to the root directory of
19 a sample and running build.
</p>
21 <p>The samples below are grouped by directories.
</p>
23 <h3>Root of samples Directory
</h3>
26 <table border=
"1" width=
"90%">
28 <th width=
"33%">Sample
</th>
29 <th width=
"34%">Sample documentation
</th>
30 <th width=
"38%">Description
</th>
34 <b>hello
</b><p><a href=
"hello">samples\hello
</a></td>
35 <td width=
"34%"><a href=
"hello/hello.html">hello.html
</a></td>
36 <td width=
"38%">A simple Hello World program to test the functioning of the
40 <td width=
"33%"><b>helloxml
</b><p><a href=
"helloxml">samples\helloxml
</a></td>
41 <td width=
"34%"><a href=
"helloxml/helloxml.html">helloxml.html
</a></td>
42 <td width=
"38%">A simple Hello World program to test the functioning of the
43 SSCLI and XML class libraries.
</td>
51 <h3>samples\compilers Directory
</h3>
54 <table border=
"1" width=
"90%">
56 <th width=
"33%">Sample
</th>
57 <th width=
"33%">Sample documentation
</th>
58 <th width=
"33%">Description
</th>
62 <b>clisp
</b><p><a href=
"compilers/clisp">compilers\clisp
</a></td>
63 <td width=
"33%"><a href=
"compilers/clisp/clisp.html">
65 <td width=
"33%">A simple Lisp compiler, which compiles to common
66 intermediate language (CIL).
</td>
69 <td width=
"33%"><b>myc
</b><p><a href=
"compilers/myc">compilers\myc
</a></td>
70 <td width=
"33%"><a href=
"compilers/myc/myc.html">myc.html
</a></td>
71 <td width=
"33%">A sample C-subset language implemented using the CLI.
</td>
79 <h3>samples\howto Directory
</h3>
82 <table border=
"1" width=
"90%">
84 <th width=
"33%" height=
"16">Sample
</th>
85 <th width=
"33%" height=
"16">Sample documentation
</th>
86 <th width=
"33%" height=
"16">Description
</th>
89 <td width=
"33%" height=
"86">
90 <b>StringFormat
</b><p><a href=
"howto/basedatatypes/stringformat">
91 howto\basedatatypes\stringformat
</a></td>
92 <td width=
"33%" height=
"86">
93 <a href=
"howto/basedatatypes/stringformat/stringformat.html">
94 stringformat.html
</a></td>
95 <td width=
"33%" height=
"86">Demonstrates various string formatting codes.
The
96 user is allowed to input experimental format strings; the result of
97 applying a format string to sample text is output to the console.
</td>
100 <td width=
"33%" height=
"57"><b>ListBuilder
</b><p><a href=
"howto/codedom">howto\codedom
</a></td>
101 <td width=
"33%" height=
"57"><a href=
"howto/codedom/listbuilder.html">
102 listbuilder.html
</a></td>
103 <td width=
"33%" height=
"57">Demonstrates how to use the code DOM to generate a strongly typed
107 <td width=
"33%" height=
"86"><b>Net GetResponse
</b><p><a href=
"howto/net/getresponse">
108 howto\net\getresponse
</a></td>
109 <td width=
"33%" height=
"86"><a href=
"howto/net/getresponse/getresponse.html">
110 getresponse.html
</a></td>
111 <td width=
"33%" height=
"86">Demonstrates how to use the System.Net WebRequest and
112 WebResponse classes by getting HTML pages at a URL input by the user and
113 then outputting the URL to the console.
</td>
116 <td width=
"33%" height=
"57"><b>Net UDPChat
</b><p><a href=
"howto/net/udpchat">
117 howto\net\udpchat
</a></td>
118 <td width=
"33%" height=
"57"><a href=
"howto/net/udpchat/udpchat.html">
119 udpchat.html
</a></td>
120 <td width=
"33%" height=
"57">Demonstrates how to use the UDPClient class to create a chat client.
</td>
123 <td width=
"33%" height=
"57"><b>Reflection Emit
</b><p><a href=
"howto/reflection/emit">
124 howto\reflection\emit
</a></td>
125 <td width=
"33%" height=
"57"><a href=
"howto/reflection/emit/reflectionemit.html">
126 reflectionemit.html
</a></td>
127 <td width=
"33%" height=
"57">Demonstrates how to use reflection emit.
</td>
130 <td width=
"33%" height=
"57"><b>Reflection Invoke
</b><p>
131 <a href=
"howto/reflection/invoke">howto\reflection\invoke
</a></td>
132 <td width=
"33%" height=
"57"><a href=
"howto/reflection/invoke/reflectioninvoke.html">
133 reflectioninvoke.html
</a></td>
134 <td width=
"33%" height=
"57">Demonstrates how to invoke different kinds of methods
135 through reflection.
</td>
138 <td width=
"33%" height=
"57"><b>Regular Expressions
</b><p>
139 <a href=
"howto/regularexpressions">howto\regularexpressions
</a></td>
140 <td width=
"33%" height=
"57">
141 <a href=
"howto/regularexpressions/regularexpressions.html">
142 regularexpressions.html
</a></td>
143 <td width=
"33%" height=
"57">Demonstrates how to use the RegEx class and regular
147 <td width=
"33%" height=
"89"><b>Remoting
</b><p><a href=
"howto/remoting/client">
148 howto\remoting\client
</a><br />
149 <a href=
"howto/remoting/server">howto\remoting\server
</a><br/>
150 <a href=
"howto/remoting/shared">howto\remoting\shared
</a></td>
151 <td width=
"33%" height=
"89"><a href=
"howto/remoting/remoting.html">
152 remoting.html
</a></td>
153 <td width=
"33%" height=
"89">Demonstrates various aspects of the
154 System.Runtime.Remoting namespace.
</td>
157 <td width=
"33%" height=
"70"><b>Managed Resources
</b><p>
158 <a href=
"howto/resources">howto\resources
</a></td>
159 <td width=
"33%" height=
"70">
160 <a href=
"howto/resources/managedresources.html">
161 managedresources.html
</a></td>
162 <td width=
"33%" height=
"70">Demonstrates how to use managed resources.
163 This sample allows the
164 user to experiment with various options in creating and using managed resources
165 and resource assemblies.
</td>
168 <td width=
"33%" height=
"70"><b>Security Permissions
</b><p>
169 <a href=
"howto/security/permissions">howto\security\permissions
</a></td>
170 <td width=
"33%" height=
"70">
171 <a href=
"howto/security/permissions/permissions.html">
172 permissions.html
</a></td>
173 <td width=
"33%" height=
"70">Demonstrates how to use the Code Access
174 Security Policy tool to change machine-level settings, and how to create and
176 custom permissions object.
</td>
179 <td width=
"33%" height=
"57"><b>Serialization ISerializable
</b><p>
180 <a href=
"howto/serialization/iserializable">
181 howto\serialization\iserializable
</a></td>
182 <td width=
"33%" height=
"57">
183 <a href=
"howto/serialization/iserializable/iserializable.html">
184 iserializable.html
</a></td>
185 <td width=
"33%" height=
"57">Demonstrates how to use the
<b>ISerializable
</b>
186 interface and XML serialization to customize the serialization of your own
190 <td width=
"33%" height=
"57"><b>Serialization SimpleSerialize
</b><p>
191 <a href=
"howto/serialization/simpleserialize">
192 howto\serialization\simpleserialize
</a></td>
193 <td width=
"33%" height=
"57">
194 <a href=
"howto/serialization/simpleserialize/simpleserialize.html">
195 simpleserialize.html
</a></td>
196 <td width=
"33%" height=
"57">Demonstrates how to serialize a graph of
197 objects using the serialization infrastructure and binary serialization.
</td>
200 <td width=
"33%" height=
"55"><b>XML Schema
</b><p>
201 <a href=
"howto/xml/xmlschema">howto\xml\xmlschema
</a></td>
202 <td width=
"33%" height=
"55"><a href=
"howto/xml/xmlschema/xmlschema.html">
203 xmlschema.html
</a></td>
204 <td width=
"33%" height=
"55">Demonstrates how to read an XML Schema
205 definition language (XSD) file into the Schema Object Model (SOM).
</td>
208 <td width=
"33%" height=
"22"><b>XML Transform
</b><p>
209 <a href=
"howto/xml/xmltransform">howto\xml\xmltransform
</a></td>
210 <td width=
"33%" height=
"22">
211 <a href=
"howto/xml/xmltransform/xmltransform.html">
212 xmltransform.html
</a></td>
213 <td width=
"33%" height=
"22">Demonstrates how to apply an Extensible Stylesheet Language
214 Transformations (XSLT) file to an XML document using the XslTransform class.
</td>
217 <td width=
"33%" height=
"22"><b>XML Serialization
</b><p>
218 <a href=
"howto/xmlserialization">howto\xmlserialization
</a></td>
219 <td width=
"33%" height=
"22">
220 <a href=
"howto/xmlserialization/xmlserialization.html">
221 xmlserialization.html
</a></td>
222 <td width=
"33%" height=
"22">Demonstrates how to use the XSD utility and XML serialization to create
223 in-memory objects that have been deserialized from XML files.
</td>
231 <h3>samples\pigui Directory
</h3>
234 <table border=
"1" width=
"90%">
236 <th width=
"33%">Sample
</th>
237 <th width=
"33%">Sample documentation
</th>
238 <th width=
"33%">Description
</th>
242 <b>hello
</b><p><a href=
"pigui/hello">pigui\hello
</a></td>
243 <td width=
"33%"><a href=
"pigui/hello/hello.html">hello.html
</a></td>
244 <td width=
"33%">Demonstrates a very simple program that uses the Tk wrapper
248 <td width=
"33%"><b>pigpad
</b><p><a href=
"pigui/pigpad">pigui\pigpad
</a></td>
249 <td width=
"33%"><a href=
"pigui/pigpad/pigpad.html">
251 <td width=
"33%">A more advanced sample that uses the Tk wrapper assembly,
252 sharedsourcecli.tk.dll.
Implements a simple Notepad editor.
</td>
255 <td width=
"33%"><b>tk
</b><p><a href=
"pigui/tk">pigui\tk
</a></td>
256 <td width=
"33%"><a href=
"pigui/tk/tk_wrapper.html">
257 tk_wrapper.html
</a></td>
258 <td width=
"33%">A sample assembly that illustrates wrapping a dynamic link
259 library implemented in C.
</td>
267 <h3>samples\utilities Directory
</h3>
270 <table border=
"1" width=
"90%">
272 <th width=
"33%">Sample
</th>
273 <th width=
"33%">Sample documentation
</th>
274 <th width=
"33%">Description
</th>
277 <td width=
"33%"><b>codetohtml
</b><p><a href=
"utilities/codetohtml">
278 utilities\codetohtml
</a></td>
279 <td width=
"33%"><a href=
"utilities/codetohtml/codetohtml.html">
280 codetohtml.html
</a></td>
281 <td width=
"33%">Creates a HTML file containing color-coded
282 source code, in various languages including JScript and C#.
</td>
285 <td width=
"33%"><b>corclass
</b><p><a href=
"utilities/corclass">
286 utilities\corclass
</a></td>
287 <td width=
"33%"><a href=
"utilities/corclass/corclass.html">
288 corclass.html
</a></td>
289 <td width=
"33%">Searches assemblies for class names and return summary
290 information about the class if it is found.
This tool extensively uses the
291 System.Reflection functionality.
</td>
294 <td width=
"33%"><b>crlf
</b><p><a href=
"utilities/crlf">utilities\crlf
</a></td>
295 <td width=
"33%"><a href=
"utilities/crlf/crlf.html">
297 <td width=
"33%">Reads a text file and analyzes all line termination in the file.
</td>
300 <td width=
"33%"><b>getcliversion
</b><p><a href=
"utilities/getcliversion">
301 utilities\getcliversion
</a></td>
302 <td width=
"33%"><a href=
"utilities/getcliversion/getcliversion.html">
303 getcliversion.html
</a></td>
304 <td width=
"33%">Supports viewing and changing the runtime
305 version number of an assembly.
</td>
308 <td width=
"33%"><b>grep
</b><p><a href=
"utilities/grep">utilities\grep
</a></td>
309 <td width=
"33%"><a href=
"utilities/grep/grep.html">
311 <td width=
"33%">Implements a simple grep text search sample
315 <td width=
"33%"><b>typefinder
</b><p><a href=
"utilities/typefinder">
316 utilities\typefinder
</a></td>
317 <td width=
"33%"><a href=
"utilities/typefinder/typefinder.html">
318 typefinder.html
</a></td>
319 <td width=
"33%">Provides the user with a command line
320 interface to provide information about types in their environment.
</td>
323 <td width=
"33%"><b>wordcount
</b><p><a href=
"utilities/wordcount">
324 utilities\wordcount
</a></td>
325 <td width=
"33%"><a href=
"utilities/wordcount/wordcount.html">
326 wordcount.html
</a></td>
327 <td width=
"33%">Introduces the base class
328 library. This sample shows how to create an application that opens multiple files
329 (specified on the command line) and counts each file's bytes, characters,
330 words, and lines.
</td>
333 <td width=
"33%"><b>xsd
</b><p><a href=
"utilities/xsd">utilities\xsd
</a></td>
334 <td width=
"33%"><a href=
"utilities/xsd/xsd.html">xsd.html
</a></td>
335 <td width=
"33%">Generates XML schemas or managed classes
336 from XDR, XML, and XSD files, or from classes in an assembly.
</td>
346 <p><i>Copyright (c)
2006 Microsoft Corporation. All rights reserved.
</i><br>